package cn.itcast.mapper;

import cn.itcast.pojo.earnings;
import cn.itcast.pojo.earningsExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface earningsMapper {
    int countByExample(earningsExample example);

    int deleteByExample(earningsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(earnings record);

    int insertSelective(earnings record);

    List<earnings> selectByExample(earningsExample example);

    earnings selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") earnings record, @Param("example") earningsExample example);

    int updateByExample(@Param("record") earnings record, @Param("example") earningsExample example);

    int updateByPrimaryKeySelective(earnings record);

    int updateByPrimaryKey(earnings record);

    List<earnings> getAllProfit(String openId);

    earnings getSumProfit(String openId);

    List<earnings> selectHorsemanRecharge(String date);

    List<earnings> selectHorsemanEarning(String date);

    List<earnings> selectHorsemanRecycleMoney(String date);
}